package core.ui.demo;

import javafx.collections.ObservableList;
import javafx.geometry.Orientation;
import javafx.geometry.Pos;
import javafx.scene.Node;
import javafx.scene.control.ScrollBar;
import javafx.scene.layout.VBox;
/**
 * @author 李瑜
 * @since JavaFX 8.0
 */
public class DemoScrollBar
{
	public static VBox getScrollBar()
	{
		VBox box = new VBox();
		box.setAlignment(Pos.TOP_RIGHT);
		box.setSpacing(5);
		ObservableList<Node> boxs = box.getChildren();
		
		ScrollBar scrollBar1 = new ScrollBar();
		ScrollBar scrollBar2 = new ScrollBar();
		scrollBar2.setOrientation(Orientation.VERTICAL);
		boxs.add(scrollBar2);
		boxs.add(scrollBar1);
		
		return box;
	}
}
